package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单信息表 sys_order
 */
public class SysOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 订单id */
    @Excel(name = "订单ID", cellType = Excel.ColumnType.NUMERIC)
    private Long orderId;
    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;
    /** 订单类型 */
    @Excel(name = "订单类型")
    private String orderType;
    /** 下单人id */
    @Excel(name = "下单人ID", cellType = Excel.ColumnType.NUMERIC)
    private Long userId;
    /** 下单人姓名 */
    @Excel(name = "下单人姓名")
    private String userName;
    /** 下单部门id */
    @Excel(name = "下单部门ID", cellType = Excel.ColumnType.NUMERIC)
    private Long deptId;
    /** 下单部门名称 */
    @Excel(name = "下单部门名称")
    private String deptName;
    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;
    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private BigDecimal orderAmount;
    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;
    /** 交付/发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交付/发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;
    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 删除标志 */
    private String delFlag;
    // getter/setter
    public Long getOrderId() { return orderId; }
    public void setOrderId(Long orderId) { this.orderId = orderId; }
    public String getOrderNo() { return orderNo; }
    public void setOrderNo(String orderNo) { this.orderNo = orderNo; }
    public String getOrderType() { return orderType; }
    public void setOrderType(String orderType) { this.orderType = orderType; }
    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }
    public String getUserName() { return userName; }
    public void setUserName(String userName) { this.userName = userName; }
    public Long getDeptId() { return deptId; }
    public void setDeptId(Long deptId) { this.deptId = deptId; }
    public String getDeptName() { return deptName; }
    public void setDeptName(String deptName) { this.deptName = deptName; }
    public String getCustomerName() { return customerName; }
    public void setCustomerName(String customerName) { this.customerName = customerName; }
    public BigDecimal getOrderAmount() { return orderAmount; }
    public void setOrderAmount(BigDecimal orderAmount) { this.orderAmount = orderAmount; }
    public String getOrderStatus() { return orderStatus; }
    public void setOrderStatus(String orderStatus) { this.orderStatus = orderStatus; }
    public Date getDeliveryDate() { return deliveryDate; }
    public void setDeliveryDate(Date deliveryDate) { this.deliveryDate = deliveryDate; }
    public String getRemark() { return remark; }
    public void setRemark(String remark) { this.remark = remark; }
    public String getDelFlag() { return delFlag; }
    public void setDelFlag(String delFlag) { this.delFlag = delFlag; }
    @Override
    public String toString() {
        return "SysOrder{" +
                "orderId=" + orderId +
                ", orderNo='" + orderNo + '\'' +
                ", orderType='" + orderType + '\'' +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", deptId=" + deptId +
                ", deptName='" + deptName + '\'' +
                ", customerName='" + customerName + '\'' +
                ", orderAmount=" + orderAmount +
                ", orderStatus='" + orderStatus + '\'' +
                ", deliveryDate=" + deliveryDate +
                ", remark='" + remark + '\'' +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
} 